package com.linkage.lcims.base.po.business;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;



/**
 *        @hibernate.class
 *         table="BD_NAS_TYPE"
 *     
 */

@SuppressWarnings("serial")
public class BdNasType  implements java.io.Serializable {


    // Fields    

	private com.linkage.lcims.base.po.business.BdNasTypePK comp_id;
     /**
      *            @hibernate.property
 *             column="vendor"
 *             length="32"
 *             not-null="true"
 *         
     */
     private String vendor;
     /**
      *            @hibernate.property
 *             column="description"
 *             length="50"
 *         
     */
     private String description;


    // Constructors

    /** default constructor */
    public BdNasType() {
    }

	/** minimal constructor */
    public BdNasType(com.linkage.lcims.base.po.business.BdNasTypePK comp_id, String vendor) {
        this.comp_id = comp_id;
        this.vendor = vendor;
    }
    
    /** full constructor */
    public BdNasType(com.linkage.lcims.base.po.business.BdNasTypePK comp_id, String vendor, String description) {
        this.comp_id = comp_id;
        this.vendor = vendor;
        this.description = description;
    }

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="nastype"
     *         
     */

    public com.linkage.lcims.base.po.business.BdNasTypePK getComp_id() {
        return this.comp_id;
    }

    public void setComp_id(com.linkage.lcims.base.po.business.BdNasTypePK comp_id) {
        this.comp_id = comp_id;
    }
    /**       
     *      *            @hibernate.property
     *             column="vendor"
     *             length="32"
     *             not-null="true"
     *         
     */

    public String getVendor() {
        return this.vendor;
    }
    
    public void setVendor(String vendor) {
        this.vendor = vendor;
    }
    /**       
     *      *            @hibernate.property
     *             column="description"
     *             length="50"
     *         
     */

    public String getDescription() {
        return this.description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
   

    public String toString() {
        return new ToStringBuilder(this)
            .append("comp_id", getComp_id())
            .toString();
    }

    public boolean equals(Object other) {
        if ( (this == other ) ) return true;
        if ( !(other instanceof BdNasType) ) return false;
        BdNasType castOther = (BdNasType) other;
        return new EqualsBuilder()
            .append(this.getComp_id(), castOther.getComp_id())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getComp_id())
            .toHashCode();
    }






}